package com.todo.member.infrastructure.mapper;

import com.todo.member.infrastructure.entity.po.MemberVipOrderPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/1/21 16:22
 * @description
 */
@Mapper
public interface MemberVipOrderMapper {

    Boolean insertMemberVipRelationPO(MemberVipOrderPO memberVipOrderPO);

    Boolean removeMemberVipRelationPOById(@Param("id") Long id);

    MemberVipOrderPO queryMemberVipRelationPOById(@Param("id") Long id);

    Boolean updateMemberVipRelationStatusById(@Param("id") Long id, @Param("oldStatus") int oldStatus, @Param("newStatus") int newStatus);

    List<MemberVipOrderPO> queryMemberVipRelationByUserId(@Param("userId") Long userId, @Param("status") Integer status);
}
